package com.bdqn.t320.ch04.service.impl;

import com.bdqn.t320.ch04.entity.SysRole;
import com.bdqn.t320.ch04.entity.User;
import com.bdqn.t320.ch04.mapper.SysRoleMapper;
import com.bdqn.t320.ch04.mapper.UserMapper;
import com.bdqn.t320.ch04.service.ISysRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author czkt
 * @since 2022-09-03
 */
@Service
public class SysRoleServiceImpl implements ISysRoleService {

    @Resource
    SysRoleMapper sysRoleMapper;

    @Override
    public SysRole getById(long l) {
        return sysRoleMapper.selectById(l);
    }

    public List<SysRole> getAll(){
       return  sysRoleMapper.selectList(null);
    }
}
